import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {IconsProviderModule} from '../icons-provider.module';
import {NgZorroAntdModule} from 'ng-zorro-antd';
import {HttpClientModule} from '@angular/common/http';
import {TrueOrFalsePipe} from './pipe/true-or-false/true-or-false.pipe';

const THIRD_MODULES = [
  FormsModule,
  ReactiveFormsModule,
  IconsProviderModule,
  NgZorroAntdModule,
  HttpClientModule,
];

const COMPONENTS = [];
const DIRECTIVES = [];
const PIPES = [
  TrueOrFalsePipe,
];

@NgModule({
  declarations: [
    ...PIPES,
    ...COMPONENTS,
    ...DIRECTIVES,
  ],
  imports: [
    CommonModule,
    ...THIRD_MODULES,
  ],
  exports: [
    ...THIRD_MODULES,
    ...PIPES,
    ...COMPONENTS,
    ...DIRECTIVES,
  ]
})
export class SharedModule {
}
